package cn.itsource.openfeign;

import cn.itsource.fallback.LoginOpenfeignFallbackFactory;
import cn.itsource.pojo.domain.Login;
import cn.itsource.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @program fccar-two
 * @Description
 * @Author TT
 * @Date 2024/09/05 17:00
 * @Version 1.0
 */
@FeignClient(value = "it-fccar-service-uaa",fallbackFactory = LoginOpenfeignFallbackFactory.class)
public interface LoginOpenfeign {
    @PostMapping("/manager/driver/create")
    JSONResult create(@RequestBody @Valid Login login);

}
